package cn.smbms.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class Sji3Controller {

    private Logger logger = Logger.getLogger(Sji3Controller.class);

    @RequestMapping("/index1")
    public String index(){
        return "index";
    }


    @RequestMapping("/test")
    public String test(String userCode, Model model){
        logger.info("usercode:"+userCode);
        model.addAttribute("userCode",userCode);
        return "test";
    }
}


